package com.carp.springframework.bean;

/**
 * @author lile
 * @date 2023/2/2
 */
public class UserService {

    private Integer id;
    private IUserDao userDao;
    private String company;
    private String location;

    public void getUserInfo() {
        System.out.println("姓名：" + userDao.getUserNameById(id)
                + "，公司：" + company + "，地点：" + location);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public IUserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(IUserDao userDao) {
        this.userDao = userDao;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
